<template>
  <div>
    <div class="title">
      周末去哪儿
    </div>
    <ul class="">
      <li v-for="item in weekendList" :key="item.id" class="item border-bottom">
        <div class="img-container">
          <img class="img-content" :src="item.imgUrl" alt="">
        </div>
        <div class="item-info">
          <p class="item-title">{{item.title}}</p>
          <p class="item-desc">{{item.desc}}</p>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'HomeWeekend',
  props: {
    weekendList: {
      type: Array
    }
  }
}
</script>

<style lang="stylus" scoped>
  @import '~styles/mixins.styl'
  .title
    height: .8rem
    line-height .8rem
    text-indent .2rem
    background-color #F5F5F5
  .img-container
    height 0
    overflow hidden
    padding-bottom 37.09%
    .img-content
      width 100%
  .item-info
    flex 1
    padding .14rem .2rem .2rem .2rem
    min-width 0
    .item-title
      line-height .54rem
      font-size .32rem
      ellipise()
    .item-desc
      line-height .4rem
      color #aaa
      ellipise()
    .item-button
      margin-top .2rem
      line-height .44rem
      height .44rem
      padding 0 .1rem
      color #fff
      background-color #FF7950
</style>
